package com.dlxj.action;

import com.dlxj.entity.Receiptdebug;
import com.dlxj.service.ReceiptDeBugService;

public class ReceiptDeBugAction {

	String json;
	Receiptdebug receiptDebug;
	ReceiptDeBugService receiptDeBugService;
	int id;
	int state;
	String idea;

	public String receipt() {

		int code = receiptDeBugService.receiptTask(receiptDebug);

		json = "{code:" + code + "}";

		return "success";

	}

	public String auditingReceipt() {

		int code = receiptDeBugService.auditingReceipt(id, idea, state);

		json = "{code:" + code + "}";

		return "success";

	}

	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

	public Receiptdebug getReceiptDebug() {
		return receiptDebug;
	}

	public void setReceiptDebug(Receiptdebug receiptDebug) {
		this.receiptDebug = receiptDebug;
	}

	public ReceiptDeBugService getReceiptDeBugService() {
		return receiptDeBugService;
	}

	public void setReceiptDeBugService(ReceiptDeBugService receiptDeBugService) {
		this.receiptDeBugService = receiptDeBugService;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getIdea() {
		return idea;
	}

	public void setIdea(String idea) {
		this.idea = idea;
	}

}
